#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h> 

int main()
{
	long long sum = 0LL;
	for (long long i = 1LL; i <= 10; i++) 
	{
		long long h = 1LL;
		for (long long j = 1LL; j <= i; j++) 
		{
			h = h * i;
		}
		sum = sum + h;
	}	
	printf("%lld\n", sum);
	return 0;
}